home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Interface / it.dig / scripts / DefineButton2_346 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2008-08-19  |  964 b   |  31 lines

  1. on(release){
  2.    if(_root.descri.comando.text == "shellopen")
  3.    {
  4.       _root.descri.instalar_mc.gotoAndStop("Abrir");
  5.       fscommand("SHELLOPEN","%org%" + this.caminho.text);
  6.    }
  7.    else if(_root.descri.comando.text == "LINK")
  8.    {
  9.       _root.descri.instalar_mc.gotoAndStop("URL");
  10.       getURL(this.caminho.text,"");
  11.    }
  12.    else if(_root.descri.comando.text == "PDF")
  13.    {
  14.       _root.descri.instalar_mc.gotoAndStop("PDF");
  15.       fscommand("Browser.SetPos","1,77");
  16.       fscommand("Browser.SetSize","790,453");
  17.       fscommand("Browser.SetURL",_level0.startdir + this.caminho.text);
  18.       fscommand("Browser.Open");
  19.    }
  20.    else if(_root.descri.comando.text == "EXECUTAR")
  21.    {
  22.       _root.descri.instalar_mc.gotoAndStop("EXECUTAR");
  23.       fscommand("Run.app","%org%" + this.caminho.text);
  24.    }
  25.    else
  26.    {
  27.       _root.descri.instalar_mc.gotoAndStop("INSTALAR");
  28.       fscommand("RUN.APP","%org%" + this.caminho.text);
  29.    }
  30. }
  31.